﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.ArcMapUI;


namespace ODM_AddIn
{
    public class ScenarioReportButton : ESRI.ArcGIS.Desktop.AddIns.Button
    {

        public ScenarioReportButton()
        {
        }

        protected override void OnClick()
        {
            if (ODM_Code.rUtils.CheckInit())
            {
                ODM_Code.Forms.ScenarioMetaForm smf = new ODM_Code.Forms.ScenarioMetaForm();
                smf.ShowDialog();
                smf.Activate();
                smf.BringToFront();
            }
            else
            {
                MessageBox.Show("Please first select the analysis area by clicking the \"Select Analysis Area\" button.", "Missing Analysis Area Parameter");
            }
        }


        protected override void OnUpdate()
        {
        }
    }
}
